package com.zby.ss.service.impl.propertIOC;

import com.zby.ss.dao.GenericDao;
import com.zby.ss.dao.UserDao;
import com.zby.ss.dao.impl.UserDaoImpl;
import com.zby.ss.service.UserService;
import com.zby.ss.service.impl.GenericServiceImpl;
import com.zby.ss.vo.User;

/**
 * Created By zby on 9:55 2019/2/14
 */

public class UserPropertyIOCServiceImpl extends GenericServiceImpl<User> implements UserService {

    private UserDao userDao;


    public UserPropertyIOCServiceImpl(UserDao userDao) {
        super(userDao);
        this.userDao = userDao;
    }

    /**
     * Created By zby on 23:03 2019/2/16
     * 调用父类的set方法
     */
    public void setGenericDao(UserDao userDao) {
        super.setGenericDao(userDao);
    }

    /**
     * Created By zby on 17:44 2019/2/16
     * 属性方法创建对象
     */
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
